#ifndef MAIN_H
#define MAIN_H


//QT utils
#include <QApplication>
#include <QLocale>
#include <QTranslator>
//local db
#include "localdb.h"
//widgets
#include <chat.h>
#include <user.h>
#include <group.h>
#include <message.h>
#include <chatbubble.h>
#include <small_message.h>
#include <mainwindow.h>
#include <login.h>


extern QMap<QString, user*> userMap;
extern QMap<QString, group*> groupMap;
extern QString use_ip;
extern QString use_uid;
extern QString use_name;
extern QJsonObject* id_list;
extern QJsonObject* group_list;
extern QJsonObject* name_list;

extern bool load_friend_over;

extern int user_list_edition;

extern QMap<int,ChatWidget*> chat_widget_list;
//extern QVector<user> user_list;


#endif // MAIN_H
